<?php
class LangBox extends CWidget {
 
    public $items = array();
    public $delimiter = '|';
    public $htmlOptions = array();
 
    public function run() {
    	//print_r($this->items);
    	if(count($this->items))
		{
			echo CHtml::openTag('ul',$this->htmlOptions)."\n";
			foreach($this->items as $itemLang){
				echo CHtml::openTag('li',$this->htmlOptions). CHtml::openTag('a',array('href'=>$itemLang['path'])).$itemLang['name'].CHtml::closeTag('a') .CHtml::closeTag('li');
			}
			//$this->renderMenuRecursive($items);
			echo CHtml::closeTag('ul');
		}
    }
 
}